com.supermap.ai

Class AIDetectViewInfo

  • java.lang.Object
    • com.supermap.ai.AIDetectViewInfo


  • public class AIDetectViewInfo
    extends java.lang.Object
    AIDetectView initialization parameter class
    Example:
    The following codes illustrate how to associate a model file. Copy and paste detect.tflite and labelmap.txt in the folder AidetectData of the folder SampelData to the folder assets.
          aidetectViewInfo=new AidetectViewInfo();
            aidetectViewInfo.assetManager=getAssets();
            aidetectViewInfo.modeFile = "detect.tflite";
            aidetectViewInfo.lableFile = "file:///android_asset/labelmap.txt";
            aidetectViewInfo.inputSize = 300;
            aidetectViewInfo.isQUANTIZED = true;
            
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  AIDetectViewInfo.FileType
      Model file types
    • Constructor Summary

      Constructors 
      Constructor and Description
      AIDetectViewInfo() 
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • assetManager

        public android.content.res.AssetManager assetManager
        assetManager to save model files
      • modeFile

        public java.lang.String modeFile
        Paths of model files
      • lableFile

        public java.lang.String lableFile
        Paths of label files
      • inputSize

        public int inputSize
        Input size
      • isQUANTIZED

        public boolean isQUANTIZED
        Whether to quantify
    • Constructor Detail

      • AIDetectViewInfo

        public AIDetectViewInfo()